import request from '@/utils/request'

// 查询欠还款列表
export function listQianhuankuan(query) {
  return request({
    url: '/system/qianhuankuan/list',
    method: 'get',
    params: query
  })
}

// 查询欠还款详细
export function getQianhuankuan(id) {
  return request({
    url: '/system/qianhuankuan/' + id,
    method: 'get'
  })
}

// 新增欠还款
export function addQianhuankuan(data) {
  return request({
    url: '/system/qianhuankuan',
    method: 'post',
    data: data
  })
}

// 修改欠还款
export function updateQianhuankuan(data) {
  return request({
    url: '/system/qianhuankuan',
    method: 'put',
    data: data
  })
}

// 删除欠还款
export function delQianhuankuan(id) {
  return request({
    url: '/system/qianhuankuan/' + id,
    method: 'delete'
  })
}
